package io.kiki.sba.registry.util;

import org.slf4j.helpers.FormattingTuple;
import org.slf4j.helpers.MessageFormatter;

public final class StringFormatter {
    private StringFormatter() {
    }

    public static String format(String messagePattern, Object... objects) {
        FormattingTuple formattingTuple = MessageFormatter.arrayFormat(messagePattern, objects);
        return formattingTuple.getMessage();
    }
}
